//
//  QHUpdateAlert.h
//  MUGH
//
//  Created by 李志良的mac mini on 2020/5/6.
//  Copyright © 2020 MUGH. All rights reserved.
//

#import <Foundation/Foundation.h>
typedef void (^QHHCPUpdateAlertUpdateButtonTappedBlock)(void);

NS_ASSUME_NONNULL_BEGIN

@interface QHUpdateAlert : NSObject

@property(nonatomic,retain) UIView * contentView;

@property(nonatomic,retain) UIView * maskView;

@property(nonatomic,retain) UIImageView * topRoketView;

@property(nonatomic,retain) UIView * bottomContentView;

@property(nonatomic,retain) UILabel * alertContentLabel;

@property(nonatomic,retain) UILabel * alertLabel;

@property(nonatomic,retain) UIView * opraView;

@property(nonatomic,retain) UIButton * retryButton;

@property(nonatomic,copy)QHHCPUpdateAlertUpdateButtonTappedBlock updateButtonTappedBlock;

@property(nonatomic,copy) QHHCPUpdateAlertUpdateButtonTappedBlock refusedButtonTappedBlock;

+ (QHUpdateAlert *)sharedAlert;


-(void)showAlertWithMessage:(NSString*)alertMessage;

-(void)showNetworkErrorMsg:(NSString *)errMsg;

-(void)hideAlert;

@end

NS_ASSUME_NONNULL_END
